package com.xk857;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author CV大魔王
 * @Description 校园微服务启动类
 * @date 2021/5/2 19:33
 */
@SpringBootApplication
@EnableSwagger2
@EnableDiscoveryClient // 开启 Nacos 服务注册发现
@EnableFeignClients
@EnableCaching // 开启缓存，使用redis
@MapperScan("com.xk857")
public class SchoolApplication {

    public static void main(String[] args) {
        SpringApplication.run(SchoolApplication.class, args);
    }

}
